/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ordenamiento;
import java.util.Comparator;
import Negocio.RegistroHorario;

/**
 *
 * @author Diego
 */
public class RegistroHorarioComparator implements Comparator<RegistroHorario>{
    @Override
    public int compare(RegistroHorario r1, RegistroHorario r2) {
        return (r1.getFecha().getTime()  < r2.getFecha().getTime()) ? (-1) : 1;
    }
    
}
